/*
 * SERVO.h
 *
 * Created: 22.10.2012 14:33:48
 *  Author: mariuvi
 */ 

/*!
 * @header		SERVO.h
 * @discussion	This file contains all declarations for controlling the servo
*/		

#ifndef SERVO_H_
#define SERVO_H_


/*!
 * @function	SERVO_PWM_init
 * @discussion	Initialize the servo, outputting a 50Hz PWM signal with a pulse width of 1.5 ms.
 * @result		None.
 */		
void SERVO_PWM_init();


/*!
 * @function	SERVO_set_position
 * @discussion	Sets the servo's position between -100 and 100. Where 100 is 0 degrees and -100 is 180 degrees.
 * @param		pos		The desired position.
 * @result		None.
 */		
void SERVO_set_position(int pos);


#endif /* SERVO_H_ */